<ul class="nav">
    <li <?php if($cu = (CURRENT_PID == HOME_PERMISSION_ID)) echo 'class="active"'; ?>>
        <a id="menumy" <?php if($cu) echo 'class="active"'; ?> href="<?php echo URL::to('admin/index/index'); ?>">
            <i class="icon-home"></i>
            <span> 我的首页</span>
        </a>
    </li>
    <?php $son = Kj\Admin\Libraries\Tree::getSonKey(); ?>
    <?php foreach($menuTree as $key => $value): ?>
    <?php if($value['display'] == 0 or ! isset($value[$son])) continue; ?>
    <?php $sonArr = current($value[$son]); ?>
    <li <?php if($current = (CURRENT_PID == $value['id'])) echo 'class="active"'; ?>>
        <a <?php if($current) echo 'class="active"'; ?> href="<?php echo URL::to($sonArr['module'].'/'.$sonArr['class'].'/'.$sonArr['action']);?>">
            <?php echo $value['name']; ?>
        </a>
    </li>
    <?php endforeach; ?>
</ul>